﻿using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace Teleware.Newbe.Navigation.Web.Domain.Entities
{
    public class HrefInfo : AggregateRoot<string>, IFullAudited<Account>, IOrdered
    {
        public HrefInfo()
        {
            HrefInfoTags = new List<HrefInfoTag>();
        }

        /// <summary>
        /// 名称
        /// </summary>
        [Required]
        public string Name { get; set; }

        /// <summary>
        /// 内容
        /// </summary>
        [Required]
        public string Content { get; set; }

        /// <summary>
        /// 链接
        /// </summary>
        [Required]
        public string Href { get; set; }

        /// <summary>
        /// 内容的类型
        /// </summary>
        public string HreInfoType { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
        public ICollection<HrefInfoTag> HrefInfoTags { get; set; }

        [Required]
        public string DepartmentId { get; set; }

        public virtual Department Department { get; set; }

        public DateTime CreationTime { get; set; }
        public long? CreatorUserId { get; set; }
        public DateTime? LastModificationTime { get; set; }
        public long? LastModifierUserId { get; set; }
        public virtual Account CreatorUser { get; set; }
        public virtual Account LastModifierUser { get; set; }
        public bool IsDeleted { get; set; }
        public DateTime? DeletionTime { get; set; }
        public long? DeleterUserId { get; set; }
        public virtual Account DeleterUser { get; set; }
        public string OrderNo { get; set; }
    }
}
